package com.blank.shop.openfeign.consumer;

import com.blank.shop.openfeign.ShopOpenfeignApplication;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Profile;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * <br/>Date 2021/8/31
 * <br/>Time 15:35:27
 *
 * @author _blank
 */
@FeignClient(name = ShopOpenfeignApplication.SERVER_PROVIDER_NAME)
@Profile({ShopOpenfeignApplication.SERVER_CONSUMER})
public interface FeignConsumerService {

    /**
     * 演示方法
     *
     * @return org.springframework.http.ResponseEntity
     */
    @PostMapping(path = {"say-hello"})
    ResponseEntity<String> sayHello();

}
